package com.dy.project.controller;

import com.dy.project.domain.AjaxResult;
import com.dy.project.domain.McCommodityType;
import com.dy.project.service.IMcCommodityTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 商品类型Controller
 * 
 * @author ruoyi
 * @date 2020-07-13
 */
@RestController
@RequestMapping("/commodity/commodityType")
public class McCommodityTypeController
{
    @Autowired
    private IMcCommodityTypeService mcCommodityTypeService;

    /**
     * 查询商品类型列表
     */
    @GetMapping("/list")
    public List<McCommodityType> list(McCommodityType mcCommodityType)
    {
        List<McCommodityType> list = mcCommodityTypeService.selectMcCommodityTypeList(mcCommodityType);
        return list;
    }
}
